package com.jianzh5.service;

import com.jianzh5.common.DataPage;
import com.jianzh5.entity.TRole;
import com.jianzh5.common.DataTables;
import com.jianzh5.pojo.PResources;
import com.jianzh5.pojo.PRole;

import java.util.List;

public interface RoleServiceI {

	public DataTables dataTables(String order, String sort, DataPage datapage);

	public List<PRole> getRoleList();

	public List<PResources> getRoleTree();

	public void delRole(int roleId);

	public PRole getRole(int roleId);

	public void editRole(PRole prole);

	public void addRole(PRole prole);

	public TRole getRoleByName(String rolename);
	
}
